﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using MongoDB.Bson;

namespace DataMongo.Entities
{
    public class Jobs
    {
        public ObjectId _id { get; set; }
        [Key]
        public int JobId { get; set; }

        public string ProjectTitle { get; set; }

        public int JobTypeId { get; set; }

        public int JobCategoryId { get; set; }

        public int JobFunctionId { get; set; }

        public int ApproxSalary { get; set; }
        public int CurrencyId { get; set; }
        public string JobDescription { get; set; }

        public string RequiredSkill { get; set; }

        public string Keywords { get; set; }

        public string JobCode { get; set; }

        public string CompanyName { get; set; }

        public int IndustryId { get; set; }

        public string Address { get; set; }
        public string PostCode { get; set; }
        public string Location { get; set; }

        public int CountryId { get; set; }
        public string State { get; set; }
        public string ReplyOption { get; set; }

        public DateTime PostDate { get; set; }

        public DateTime PostExpireDate { get; set; }

        public int PostedById { get; set; }

        public bool IsShared { get; set; }

        public bool isInterested { get; set; }
        public bool IsActive { get; set; }


    }
    public class JobBookMark
    {
        public ObjectId _id { get; set; }

        public int MarkId { get; set; }
        [Key]
        public int JobId { get; set; }

        public int MarkedByUserId { get; set; }

    }

    public class JobMarkInterest
    {
        public ObjectId _id { get; set; }

        public int InterestId { get; set; }
        [Key]
        public int JobId { get; set; }

        public int InterestByUserId { get; set; }

    }

    
}